package com.cloud.demo.common.web.exception;

import cn.hutool.core.util.ObjectUtil;
import com.cloud.demo.common.enums.ResultEnum;
import lombok.Data;

@Data
public class BusException extends RuntimeException{
    private int code;
    private String massage;
    private ResultEnum resultEnum;
    private Object object;
    public BusException(ResultEnum resultEnum, Object o){
        this.code=resultEnum.getCode();
        this.massage = resultEnum.getMessage();
        this.resultEnum = resultEnum;
        this.object = o;
    }
}
